//package com.example.springboot.util;
//
//import com.example.springboot.pojo.User;
//import org.springframework.security.core.context.SecurityContextHolder;
//
//public class Util {
//    public static User getCurrentUser() {
//        User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
//        return user;
//    }
//}
